package com.usfuture.insInfo.entity
{
	import com.usfuture.util.NumberFormat;
	
	public class InsInfo
	{
		public function InsInfo()
		{
		}
		private var _dataType:String;;//P:最新全部信息，Q:有更新发生
		private var _upateType:String;//t:有交易发生，T：盘后交易，没有开高低价，b：有买价发生变化，a：有卖价发生变化,o:有校正字段发生
		private var _timestamp:Date;//行情时间
		private var _newPrice:Number=0;//最新成交价
		private var _openPrice:Number;//开盘价
		private var _ycPrice:Number=0;//昨收价
		private var _highPrice:Number=0;//今高
		private var _lowPrice:Number=0;//今低
		private var _singleVolume:Number;//单量
		private var _allVolume:Number;//总量
		private var _bargainMoney:Number;//总成交额
		private var _buyPrice1:Number;//买价
		private var _buyPrice2:Number;//买价
		private var _buyPrice3:Number;//买价
		private var _buyPrice4:Number;//买价
		private var _buyPrice5:Number;//买价
		private var _sellPrice1:Number;//卖价
		private var _sellPrice2:Number;//卖价
		private var _sellPrice3:Number;//卖价
		private var _sellPrice4:Number;//卖价
		private var _sellPrice5:Number;//卖价
		private var _buyVolume1:Number;//买量1
		private var _buyVolume2:Number;//买量1
		private var _buyVolume3:Number;//买量1
		private var _buyVolume4:Number;//买量1
		private var _buyVolume5:Number;//买量1
		private var _sellVolume1:Number;//买量1
		private var _sellVolume2:Number;//买量1
		private var _sellVolume3:Number;//买量1
		private var _sellVolume4:Number;//买量1
		private var _sellVolume5:Number;//买量1
		
		private var _rise:Number;//涨跌
		private var _risePer:Number;//涨跌幅
		private var _pe:Number;//市盈率


		public function get dataType():String
		{
			return _dataType;
		}

		public function set dataType(value:String):void
		{
			_dataType = value;
		}

		public function get upateType():String
		{
			return _upateType;
		}

		public function set upateType(value:String):void
		{
			_upateType = value;
		}

		public function get newPrice():Number
		{
			return _newPrice;
		}

		public function set newPrice(value:Number):void
		{
			_newPrice = value;
		}

		public function get openPrice():Number
		{
			return _openPrice;
		}

		public function set openPrice(value:Number):void
		{
			_openPrice = value;
		}

		public function get ycPrice():Number
		{
			return _ycPrice;
		}

		public function set ycPrice(value:Number):void
		{
			_ycPrice = value;
		}

		public function get highPrice():Number
		{
			return _highPrice;
		}

		public function set highPrice(value:Number):void
		{
			_highPrice = value;
		}

		public function get lowPrice():Number
		{
			return _lowPrice;
		}

		public function set lowPrice(value:Number):void
		{
			_lowPrice = value;
		}

		public function get singleVolume():Number
		{
			return _singleVolume;
		}

		public function set singleVolume(value:Number):void
		{
			_singleVolume = value;
		}

		public function get allVolume():Number
		{
			return _allVolume;
		}

		public function set allVolume(value:Number):void
		{
			_allVolume = value;
		}

		public function get bargainMoney():Number
		{
			return _bargainMoney;
		}

		public function set bargainMoney(value:Number):void
		{
			_bargainMoney = value;
		}

		public function get buyPrice1():Number
		{
			return _buyPrice1;
		}

		public function set buyPrice1(value:Number):void
		{
			_buyPrice1 = value;
		}

		public function get buyPrice2():Number
		{
			return _buyPrice2;
		}

		public function set buyPrice2(value:Number):void
		{
			_buyPrice2 = value;
		}

		public function get buyPrice3():Number
		{
			return _buyPrice3;
		}

		public function set buyPrice3(value:Number):void
		{
			_buyPrice3 = value;
		}

		public function get buyPrice4():Number
		{
			return _buyPrice4;
		}

		public function set buyPrice4(value:Number):void
		{
			_buyPrice4 = value;
		}

		public function get buyPrice5():Number
		{
			return _buyPrice5;
		}

		public function set buyPrice5(value:Number):void
		{
			_buyPrice5 = value;
		}

		public function get sellPrice1():Number
		{
			return _sellPrice1;
		}

		public function set sellPrice1(value:Number):void
		{
			_sellPrice1 = value;
		}

		public function get sellPrice2():Number
		{
			return _sellPrice2;
		}

		public function set sellPrice2(value:Number):void
		{
			_sellPrice2 = value;
		}

		public function get sellPrice3():Number
		{
			return _sellPrice3;
		}

		public function set sellPrice3(value:Number):void
		{
			_sellPrice3 = value;
		}

		public function get sellPrice4():Number
		{
			return _sellPrice4;
		}

		public function set sellPrice4(value:Number):void
		{
			_sellPrice4 = value;
		}

		public function get sellPrice5():Number
		{
			return _sellPrice5;
		}

		public function set sellPrice5(value:Number):void
		{
			_sellPrice5 = value;
		}

		public function get buyVolume1():Number
		{
			return _buyVolume1;
		}

		public function set buyVolume1(value:Number):void
		{
			_buyVolume1 = value;
		}

		public function get buyVolume2():Number
		{
			return _buyVolume2;
		}

		public function set buyVolume2(value:Number):void
		{
			_buyVolume2 = value;
		}

		public function get buyVolume3():Number
		{
			return _buyVolume3;
		}

		public function set buyVolume3(value:Number):void
		{
			_buyVolume3 = value;
		}

		public function get buyVolume4():Number
		{
			return _buyVolume4;
		}

		public function set buyVolume4(value:Number):void
		{
			_buyVolume4 = value;
		}

		public function get buyVolume5():Number
		{
			return _buyVolume5;
		}

		public function set buyVolume5(value:Number):void
		{
			_buyVolume5 = value;
		}

		public function get sellVolume1():Number
		{
			return _sellVolume1;
		}

		public function set sellVolume1(value:Number):void
		{
			_sellVolume1 = value;
		}

		public function get sellVolume2():Number
		{
			return _sellVolume2;
		}

		public function set sellVolume2(value:Number):void
		{
			_sellVolume2 = value;
		}

		public function get sellVolume3():Number
		{
			return _sellVolume3;
		}

		public function set sellVolume3(value:Number):void
		{
			_sellVolume3 = value;
		}

		public function get sellVolume4():Number
		{
			return _sellVolume4;
		}

		public function set sellVolume4(value:Number):void
		{
			_sellVolume4 = value;
		}

		public function get sellVolume5():Number
		{
			return _sellVolume5;
		}

		public function set sellVolume5(value:Number):void
		{
			_sellVolume5 = value;
		}

		public function get pe():Number
		{
			return _pe;
		}

		public function set pe(value:Number):void
		{
			_pe = value;
		}

		public function get rise():Number
		{
			return NumberFormat.twoPrecision(Math.abs(newPrice - ycPrice));
		}

		public function set rise(value:Number):void
		{
			_rise = value;
		}
		
		public function get risePer():Number
		{
			if(ycPrice&&ycPrice!=0)
				return NumberFormat.twoPrecision(Math.abs(newPrice - ycPrice)/ycPrice * 100);
			else
				return 0;
		}
		
		public function set risePer(value:Number):void
		{
			_risePer = value;
		}

		public function get timestamp():Date
		{
			return _timestamp;
		}

		public function set timestamp(value:Date):void
		{
			_timestamp = value;
		}

		
	}
}